package com.atguigu.gmall.feign.product.fallback;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.feign.product.BaseCategoryFeignClient;
import com.atguigu.gmall.product.vo.CategoryVo;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class BaseCategoryFeignClientFallback implements BaseCategoryFeignClient {

    @Override
    public Result<List<CategoryVo>> findAllCategory() {     // 降级逻辑
        log.info("BaseCategoryFeignClientFallback...findAllCategory...方法执行了");
        return Result.ok();
    }

}
